package cn.iocoder.yudao.module.wms.controller.admin.unit.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

@Schema(description = "管理后台 - 计量单位新增/修改 Request VO")
@Data
public class UnitSaveReqVO {

    @Schema(description = "计量单位id", requiredMode = Schema.RequiredMode.REQUIRED, example = "4019")
    private Long id;

    @Schema(description = "计量单位编码")
    @NotEmpty(message = "计量单位编码不能为空")
    private String code;

    @Schema(description = "计量单位名称", example = "王五")
    @NotEmpty(message = "计量单位名称不能为空")
    private String name;

}